<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<script src="${ctx}/js/table.js" type="text/javascript"></script> 
<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
<input type="hidden" name="page.order" id="order" value="${page.order}"/>
<s:select name="page.pageSize" list="{10,20,50,100}"  value="page.pageSize"
          onchange="javascript:jumpPage(1)" cssClass="pagesize" theme="simple"/>
<s:if test="%{page.startNum-1>0}">
    <a href="javascript:jumpPage(${page.startNum-1})" class="next">上页 &raquo;</a>
</s:if>
<s:else>
    <span class="previous-off">&laquo; 上页</span>
</s:else>
<s:iterator var="i" begin="page.startNum" end="page.endNum">
    <s:if test="%{page.pageNo==#i}">
        <span class="active">${i}</span>
    </s:if>
    <s:else>
          <a href="javascript:jumpPage(${i})">${i}</a>
    </s:else>
</s:iterator>
<s:if test="%{page.totalPages-page.endNum>0}">
    <a href="javascript:jumpPage(${page.endNum+1})" class="next">下页 &raquo;</a>
</s:if>
<s:else>
    <span class="previous-off">&laquo; 下页</span>
</s:else>
